<?php
/**
 * Created by PhpStorm.
 * User: bevan
 * Date: 2018/1/2
 * Time: 下午3:11
 */

namespace thans\auth\model;

use think\Model;

class AuthGroupAccessModel extends Model
{

    /**
     *
     * @method 判断某个组下面是否有成员
     * @version
     * @User: bevan
     * @param $id
     * @return
     */
    public function hasUser($id)
    {
        return self::where('group_id',$id)->find();
    }
}